/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.i0o.appliancemanager.ui.window;

import javax.swing.JFrame;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author Administrator
 */
public abstract class BaseWin extends JFrame {

    protected Logger log = LoggerFactory.getLogger(this.getClass());
    

    /**
     * 打开窗体
     */
    public void open() {

        this.init();
        this.setVisible(true);
    }

    /**
     * 关闭窗体
     */
    public void close() {
        this.setVisible(false);
    }

    private final void init() {
        initialize();
        initStyle();
        initListenet();
    }
    
    protected void initialize(){
        
    }

    protected void initListenet() {
    }

    protected void initStyle() {
    }
}
